import { post, get } from '../request'

const getUserList = params => get('/users/list', params)
const getUserDetail = params => get('/users/detail', { ...params })
const addUser = params => post('/users/add', params)
const updateUser = params => post('/users/update', params)
const deleteUser = params => post('/users/delete', params)

export default {
  getUserList,
  getUserDetail,
  addUser,
  updateUser,
  deleteUser
}
